PXC Documentation

PXC Home

Draw Line

pre 1.18

Draw line on an image. Connect path data to it to draw line from path.

Node Data

Display name

Draw Line

Internal name

Node_Line

Inheritances

Node_Processor
Node_Line

Inputs

Output

vec2

Dimension

bool

Use Path Bounding Box

bool

Combine Array

ipadding

Padding

bool

Width Pass

enum

Width Blend Mode

Background

enum

Background

color

Bg Color

surface

Bg Surface

enum

Bg Blend Mode

Line Data

enum

Data Type

rotation

Rotation

path

Path

vector

Segment

vec2

Start Point

vec2

End Point

bool

Force Loop

bool

Fix Length

islider

Segment

float

Segment Length

Width

bool

1Px Mode

range

Width

bool

Span Width Over Path

Weight

bool

Apply Weight

range

Normalized Range

Line Settings

range

Range

bool

Invert

float

Shift

bool

Clamp Range

Dash Line

bool

Dash

vec4

Dash Line

float

Dash Shift

Wiggle

bool

Use Wiggle

seed

Wiggle Seed

range

Amplitude

slider

Frequency

islider

Detail

float

Phase

bool

Trim Range

bool

Trim Curve

Line Caps

enum

Start Cap

enum

End Cap

islider

Round Segment

Textured

surface

Start Cap

surface

End Cap

bool

Rotate Cap

rotRange

Angles

range

Offset

Color

gradient

Color Over Length

gradient

Random Blend

bool

Span Color Over Path

Weight

gradient

Color Weight

vec2

Color Weight Range

Texture

surface

Texture

vec2

Texture Position

rotation

Texture Rotation

vec2

Texture Scale

bool

Scale Texture To Length

Render

enum

Ssaa

Outputs

surface

Surface Out

surface

Width Pass

Attributes

Color Depth
Interpolation
Oversample

Draw a line to surface.



Properties


Background
BackgroundBackground type
Bg ColorBackground color
Bg SurfaceBackground surface
Line Data
Data TypeType of data to draw the line from.
Force LoopAdd extra line between the last point to the first.
Fix LengthWhether to draw fixed amount of segments (off), or fix the length of each segment (on) to keep path resolution no matter the length.
Width
1Px ModeDraw a pixel perfect 1px width line.
WidthWidth of the line. Randomized per segment.
Span Width Over PathScale width curve (if used) to the current Range value.
Weight
Apply WeightApply path weight to line width.
Line Settings
RangeTrim line relative to input length.
InvertReverse path direction.
ShiftShift position on the original data.
Clamp RangeClamp range after shift to between [0,1].
Dash Line
DashDraw dashed line.
Dash LineLength of dash vs. spacing.
Dash ShiftShift dash position.
Wiggle
Use WiggleRandomly shift each segment.
AmplitudeAmount of shifting.
FrequencyWiggle frequency.
DetailLevel of wiggle detail.
PhaseShift wiggling wlong the line.
Trim RangeScale wiggle curve (if used) to the current Range value.
Line Caps
Start CapShape of start cap.
End CapShape of end cap.
Color
Color Over LengthLine color over length.
Random BlendBase color. Random per line.
Span Color Over PathScale Color Over Length to the current Range value.
Color WeightColor line based on weight.
Texture
TextureAdd texture to line.
Render
SsaaDraw line on larger surface then scaled down for anti-aliasing.



Commit History


1.21.8.005
  • Fix custom range + shift with clamp off does not loop the line properly.
1.21.7.103
  • Fix freeze when setting Segment length to 0.
1.21.4.002
  • Add weight to width effect curve.
1.21.4
  • Fix 1px mode line disappear.
1.21.3.007
  • Line caps and width pass now support texture.
1.21.2.008
  • Add line caps angle and offset property.
1.21.2.001
  • Fix line cap in width pass render incorrectly.
1.21.1.006
  • Wiggle phase now normalized.
  • Add oversample mode.
1.21.1.005
  • Add compound path width blend mode.

Related Links